/*
 	随机发牌小程序
 */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(){
	int arr[52] = {};
	int i = 0,card = 0,type = 0,num = 0;
	srand (time(0));
	printf("你需要多少张牌？\n");
	scanf("%d",&num);
	for(i = 0;i < 52;i++){
		card = rand() % 52;
		if(!(card)){
			card --;
			continue;
		}
		else{
			arr[card] = 1;
		}
	}

	for(i = 0;i < 52;i++){
		if(arr[i] == 0){
			printf("%d \n",i);
		}
	}
}
